package com.sinocare.project.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

/**
 * 角色、菜单关系表(SccRoleMenu)表实体类
 *
 * @author makejava
 * @since 2021-12-20 19:08:03
 */
@Data
@SuppressWarnings("serial")
@TableName(value = "scc_role_menu")
public class SccRoleMenu extends Model<SccRoleMenu> {
    //主键、序号
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    //角色id(唯一)
    private Integer roleId;
    //菜单id(唯一)
    private Integer menuId;
    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    public Serializable pkVal() {
        return this.id;
    }
}

